import { y3Event } from "./lib/y3Event";
import { GlobalEventType } from "./lib/eventType";
import { y3UI } from "./lib/y3UI";
import { y3Player } from "./lib/y3Player";


GameAPI.print_to_dialog(3, "y3Ts")

y3Event.registerEvent(GlobalEventType.GAME_INIT, (actor, data) => {
    GameAPI.print_to_dialog(3, "GAME_INIT")

    let tempBtn = y3UI.getUI(y3Player.toPlayer(1), "panel_1.btn")
    GameAPI.print_to_dialog(3, tempBtn.toString())
})